

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using JYJ.AiYard.PhoneBooks.Books;

namespace JYJ.AiYard.EntityMapper.Books
{
    public class BookCfg : IEntityTypeConfiguration<Book>
    {
        public void Configure(EntityTypeBuilder<Book> builder)
        {

            builder.ToTable("Books", YoYoAbpefCoreConsts.SchemaNames.CMS);

            
            builder.Property(a => a.Name).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
            builder.Property(a => a.Type).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
            builder.Property(a => a.PublishDate).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
            builder.Property(a => a.Price).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
		
				
		//// custom codes
		// TODO 自定义代码

		// TODO 自定义代码

		// TODO 自定义代码

		// TODO 自定义代码

		//值得你故意的 
		
		
		//// custom codes end
    }
}
